package com.whnk.pm.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.whnk.pm.mapper.DcInfoMapper;
import com.whnk.pm.domain.DcInfo;
import com.whnk.pm.service.IDcInfoService;
import com.whnk.common.support.Convert;

/**
 * 日历配置 服务层实现
 * 
 * @author whwhnk
 * @date 2019-09-23
 */
@Service
public class DcInfoServiceImpl implements IDcInfoService 
{
	@Autowired
	private DcInfoMapper dcInfoMapper;

	/**
     * 查询日历配置信息
     * 
     * @param dcId 日历配置ID
     * @return 日历配置信息
     */
    @Override
	public DcInfo selectDcInfoById(Integer dcId)
	{
	    return dcInfoMapper.selectDcInfoById(dcId);
	}
	
	/**
     * 查询日历配置列表
     * 
     * @param dcInfo 日历配置信息
     * @return 日历配置集合
     */
	@Override
	public List<DcInfo> selectDcInfoList(DcInfo dcInfo)
	{
	    return dcInfoMapper.selectDcInfoList(dcInfo);
	}
	
    /**
     * 新增日历配置
     * 
     * @param dcInfo 日历配置信息
     * @return 结果
     */
	@Override
	public int insertDcInfo(DcInfo dcInfo)
	{
	    return dcInfoMapper.insertDcInfo(dcInfo);
	}
	
	/**
     * 修改日历配置
     * 
     * @param dcInfo 日历配置信息
     * @return 结果
     */
	@Override
	public int updateDcInfo(DcInfo dcInfo)
	{
	    return dcInfoMapper.updateDcInfo(dcInfo);
	}

	/**
     * 删除日历配置对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteDcInfoByIds(String ids)
	{
		return dcInfoMapper.deleteDcInfoByIds(Convert.toStrArray(ids));
	}
	
}
